package cn.cl.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import cn.cl.common.utils.PageUtils;
import cn.cl.gulimall.product.entity.ProductAttrValueEntity;

import java.util.List;
import java.util.Map;

/**
 * spu属性值
 *
 * @author 高志红
 * @email 1739745826@qq.com
 * @date 2020-05-07 19:59:23
 */
public interface ProductAttrValueService extends IService<ProductAttrValueEntity> {

	PageUtils queryPage(Map<String, Object> params);

	/**
	 * 4、保存spu的规格参数 pms_product_attr_value
	 */
	void saveProductAttr(List<ProductAttrValueEntity> productAttrValueEntities);

	/**
	 * SPU查询回显
	 */
	List<ProductAttrValueEntity> baseAttrlistforspu(Long spuId);

	void updateSpuAttr(Long spuId, List<ProductAttrValueEntity> productAttrValueEntities);
}

